import request from '@/utils/request'

// 查询性格维度描述列表
export function listDimension(query) {
  return request({
    url: '/system/dimension/list',
    method: 'get',
    params: query
  })
}

// 查询性格维度描述详细
export function getDimension(id) {
  return request({
    url: '/system/dimension/' + id,
    method: 'get'
  })
}

// 新增性格维度描述
export function addDimension(data) {
  return request({
    url: '/system/dimension',
    method: 'post',
    data: data
  })
}

// 修改性格维度描述
export function updateDimension(data) {
  return request({
    url: '/system/dimension',
    method: 'put',
    data: data
  })
}

// 删除性格维度描述
export function delDimension(id) {
  return request({
    url: '/system/dimension/' + id,
    method: 'delete'
  })
}
